var frisby = require('frisby');

frisby.create('获取航班备降机场信息')
  .post('http://192.168.247.88:9090/hub/flight/getAlternateAirportInfo', {
       'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
       'flightdataInfos':'flightdate@flightno@dep@arr,flightdate@flightno@dep@arr,flightdate@flightno@dep@arr...'
       //flightdataInfos:flightdate@flightno@dep@arr,flightdate@flightno@dep@arr,flightdate@flightno@dep@arr...   不能为空不能为空，且每一节的参数必须按照指定格式进行拼接
     })

    // .inspectJSON()
  .expectJSONTypes({
    'result': {
      "value":String,
      "infos":Array
    }})

  .expectJSONTypes('result.infos.?', {
      "flightdate":String,//"航班日期",
			"flightno":String,//"航班号",
			"dep":String,//"起飞机场三字码",
			"arr":String,//"目的机场三字码",
    	"DepSty":String,//"起飞备降场",
    	"AirWaySty":"航路备降场",
    	"ArrSty":String,//"到达备降场"
    })
     .expectStatus(200)
.toss();
